// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * NavAfterSellOrder
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "nav_after_sell_order", autoResultMap = true)
@Schema(title = "订单管理售后工单")
public class NavAfterSellOrder implements Serializable {

  /**
   * 所属订单管理
   */
  @TableField(value = "`nav_sell_order_id`")
  @Schema(title = "所属订单管理")
  private Long navSellOrderId;

  /**
   * 售后单号
   */
  @TableField(value = "`after_id`")
  @Schema(title = "售后单号")
  private String afterId;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 系统单号
   */
  @TableField(value = "`order_id`")
  @Schema(title = "系统单号")
  private String orderId;

  /**
   * 店铺
   */
  @TableField(value = "`shop_info`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopInfo;

  /**
   * 站点
   */
  @TableField(value = "`site`")
  @JoinField(SysRegion.class)
  @Schema(title = "站点")
  private Long site;

  /**
   * 售后类型
   */
  @TableField(value = "`type`")
  @Schema(title = "售后类型")
  private String type;

  /**
   * 售后原因
   */
  @TableField(value = "`reason`")
  @Schema(title = "售后原因")
  private String reason;

  /**
   * 订单来源
   */
  @TableField(value = "`source`")
  @Schema(title = "订单来源")
  private String source;

  /**
   * 订单标签
   */
  @TableField(value = "`tag`")
  @Schema(title = "订单标签")
  private String tag;

  /**
   * 自发货截单
   */
  @TableField(value = "`cut`")
  @Schema(title = "自发货截单")
  private String cut;

  /**
   * 退款状态
   */
  @TableField(value = "`refund_status`")
  @Schema(title = "退款状态")
  private String refundStatus;

  /**
   * 退款方式
   */
  @TableField(value = "`way`")
  @Schema(title = "退款方式")
  private String way;

  /**
   * 订单状态
   */
  @TableField(value = "`status`")
  @Schema(title = "订单状态")
  private String status;

  /**
   * 售后状态内容
   */
  @TableField(value = "`status_explain`")
  @Schema(title = "售后状态内容")
  private String statusExplain;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 物流商返回的物流单号
   */
  @TableField(value = "`delivery_waybill_id`")
  @Schema(title = "物流商返回的物流单号")
  private String deliveryWaybillId;

  /**
   * 买家姓名
   */
  @TableField(value = "`buyer_name`")
  @Schema(title = "买家姓名")
  private String buyerName;

  /**
   * 买家邮箱
   */
  @TableField(value = "`buyer_email`")
  @Schema(title = "买家邮箱")
  private String buyerEmail;

  /**
   * 客选物流
   */
  @TableField(value = "`delivery_logistics`")
  @JoinField(NavLogisticsProviderView.class)
  @Schema(title = "客选物流")
  private Long deliveryLogistics;

  /**
   * 客付运费
   */
  @TableField(value = "`delivery_real_freight`")
  @Schema(title = "客付运费")
  private java.math.BigDecimal deliveryRealFreight;

  /**
   * 跟踪号
   */
  @TableField(value = "`delivery_track_id`")
  @Schema(title = "跟踪号")
  private String deliveryTrackId;

  /**
   * 收件人
   */
  @TableField(value = "`delivery_receipt`")
  @Schema(title = "收件人")
  private String deliveryReceipt;

  /**
   * 邮编
   */
  @TableField(value = "`delivery_zip_code`")
  @Schema(title = "邮编")
  private String deliveryZipCode;

  /**
   * 电话
   */
  @TableField(value = "`delivery_phone`")
  @Schema(title = "电话")
  private String deliveryPhone;

  /**
   * 国家/地区
   */
  @TableField(value = "`delivery_country`")
  @JoinField(SysCountry.class)
  @Schema(title = "国家/地区")
  private Long deliveryCountry;

  /**
   * 省/州
   */
  @TableField(value = "`delivery_province`")
  @Schema(title = "省/州")
  private String deliveryProvince;

  /**
   * 城市
   */
  @TableField(value = "`delivery_city`")
  @Schema(title = "城市")
  private String deliveryCity;

  /**
   * 区/县
   */
  @TableField(value = "`delivery_area`")
  @Schema(title = "区/县")
  private String deliveryArea;

  /**
   * 门牌号
   */
  @TableField(value = "`delivery_house_number`")
  @Schema(title = "门牌号")
  private String deliveryHouseNumber;

  /**
   * 公司名
   */
  @TableField(value = "`delivery_company`")
  @Schema(title = "公司名")
  private String deliveryCompany;

  /**
   * 地址类型
   */
  @TableField(value = "`delivery_address_type`")
  @Schema(title = "地址类型")
  private String deliveryAddressType;

  /**
   * 详细地址1
   */
  @TableField(value = "`delivery_address1`")
  @Schema(title = "详细地址1")
  private String deliveryAddress1;

  /**
   * 详细地址2
   */
  @TableField(value = "`delivery_address2`")
  @Schema(title = "详细地址2")
  private String deliveryAddress2;

  /**
   * 详细地址3
   */
  @TableField(value = "`delivery_address3`")
  @Schema(title = "详细地址3")
  private String deliveryAddress3;

  /**
   * 发货仓库
   */
  @TableField(value = "`delivery_warehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "发货仓库")
  private Long deliveryWarehouse;

  /**
   * 物流方式
   */
  @TableField(value = "`delivery_logistics_channel`")
  @JoinField(NavLogisticsChannelView.class)
  @Schema(title = "物流方式")
  private Long deliveryLogisticsChannel;

  /**
   * 客服备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "客服备注")
  private String remark;

  /**
   * 订单金额
   */
  @TableField(value = "`total_amount`")
  @Schema(title = "订单金额")
  private java.math.BigDecimal totalAmount;

  /**
   * 本次退款
   */
  @TableField(value = "`this_amount`")
  @Schema(title = "本次退款")
  private java.math.BigDecimal thisAmount;

  /**
   * 已退款
   */
  @TableField(value = "`refund_amount`")
  @Schema(title = "已退款")
  private java.math.BigDecimal refundAmount;
}
